package com.qianniu.napi.admin.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.qianniu.napi.admin.entity.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author chenxuebin
 * @since 2017-02-24
 */
public interface UserMapper extends BaseMapper<User> {

    User findByName(String name);

    List<User> selectUserList(Page page);

    //通过手机号查询平台用户，包括管理员+员工
    List<User> selectMuser(@Param("phone")String phone,@Param("asmpid")Long asmpid);

    public User getLeagueUserbySid(@Param("sid")Long sid);

    public User getLeagueUserbyLeagueid(@Param("leagueid")Long leagueid);

    public User getAdminUser(@Param("mpid")Long mpid);

}